package close.mazegame.input.playerinput;

import close.mazegame.input.PadInput;
import close.mazegame.input.GamepadMap.Model;
import close.mazegame.input.playerinput.PlayerInput.PlayerKeys;

import com.badlogic.gdx.math.Vector2;

public class PadPlayerController extends PadInput<PlayerKeys> implements PlayerInput {

	//final static private float TRIGGER_POINT = 0.0f;
	//final static private float DEADZONE = 0.2f;
	
	Vector2 turretDir = new Vector2();
	Vector2 moveDir = new Vector2();
	
	public PadPlayerController(Model model) {
		super(model);
		moveDir = new Vector2();
		turretDir = new Vector2();
		controlScheme.put(buttonMap.BUTTON_R3, PlayerKeys.TOGGLE_FIXTURRET);
	}

	@Override
	public Vector2 getTurretDirection() {
		turretDir.x = right_stick_x;
		turretDir.y = right_stick_y;
		return turretDir;
	}

	@Override
	public Vector2 getMovementDirection() {
		moveDir.x = left_stick_x;
		moveDir.y = left_stick_y;
		return moveDir;
	}

}
